﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<upcdew_20111_group2b.CapaDominio.Reserva>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>CodReserva</th>
            <th>Fec_Reserva</th>
            <th>Num_Personas</th>
            <th>Tex_Comentario
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { CodReserva = item.CodReserva })%> |
                <%: Html.ActionLink("Detalles", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%: item.CodReserva %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.Fec_Reserva) %>
            </td>
            <td>
                <%: item.Num_Personas %>
            </td>
            <td>
                <%: item.Tex_Comentario %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

